﻿using System;
using System.ComponentModel;

namespace QuizAppPhone.ViewModels
{
    public class TipologiaTestViewModel : INotifyPropertyChanged
    {
        private long _iDTest;

        public long IDTest
        {
            get { return _iDTest; }
            set
            {
                _iDTest = value;
                NotifyPropertyChanged("IDTest");
            }
        }

        private string _nomeTest;

        public string NomeTest
        {
            get { return _nomeTest; }
            set
            {
                _nomeTest = value;
                NotifyPropertyChanged("NomeTest");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
